Hello,
I've done something similar with the pwdLastSet attribute which has the same format in AD as AccountExpires
(100-nanosec. since Jan. 1, 1601)
So best ist to do an advanced flow from AD to MV in the correct format for FIM portal.
Create a extension project for the advanced attribute flow you create first from AD to MV attribute:
In the MapAttributeForImport Method paste a code like this:
Case "updatePwdLastSet"
If (csentry("pwdLastSet").IsPresent) Then
If (csentry("pwdLastSet").Value <> "0") Then
Dim dtFileTimeUTC As DateTime = DateTime.FromFileTimeUtc(csentry("pwdLastSet").IntegerValue)
mventry("pwdLastSet").Value = dtFileTimeUTC.ToUniversalTime().ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ss'.000'")
Else
mventry("pwdLastSet").Delete()
End If
End If
Simple replace the attribute names in this example.
/Peter